package main 
import(
	"fmt"
)

func Sum (arr ...int)(sum int){
    
	for _,i:=range arr{
		sum+=i
	}
	return
}

func main(){
	arr:=[]int{1,2,3,4,5,6}
    sum:=Sum(arr...)
	fmt.Println(sum)
}